package com.zjj.shiro.tag;

import org.apache.shiro.web.tags.PermissionTag;

/**
 * 自定义tag - 是否有权限
 * 
 * @author zjj
 */
public class HasPermissionTag extends PermissionTag {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2809632103042892980L;

	private String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	protected boolean showTagBody(String p) {
		return isPermitted(p);
	}

}
